home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Audio dcmds / Audio CD dcmds.sit / Audio CD dcmds.π / Think dcmd glue source / Think dcmd glue.c next >
C/C++ Source or Header  |  1995-07-02  |  632b  |  34 lines

  1. pascal void COMMANDENTRY( void );
  2.  
  3. #ifdef THINK_C
  4. void main( void )
  5. {
  6.     asm
  7.     {
  8.         
  9.          start:    dc.w    2                    /* version number (?) */
  10.                 dc.w    0                    /* global space (?) */
  11.                 lea        COMMANDENTRY,a0        /* required to use TestDcmd */
  12.                 lea        @start,a0            /* allow use of globals via SetUpA4.h */
  13.                 bra        COMMANDENTRY;
  14.                 
  15.     }
  16. }
  17. #else
  18. asm void main( void )
  19. {
  20.     
  21.         
  22.          start:    dc.w    2                    /* version number (?) */
  23.                 dc.w    0                    /* global space (?) */
  24.                 lea        COMMANDENTRY,a0        /* required to use TestDcmd */
  25.                 lea        start,a0            /* allow use of globals via SetUpA4.h */
  26.                 jmp        COMMANDENTRY
  27.                 
  28. }
  29. #endif
  30.  
  31. void _DATAINIT( void )
  32. {
  33.     /* nothing */
  34. }